

export declare namespace Form {

    type Show = <T>(data?: any) => boolean | boolean
    type nodeClick = <T>(node: T) => void
    interface Fileds {
        label: string // 名称
        type: "input" | "inputNumber" | "select" | "treeSelect" | "tree" | "icon" | "radio" | "date" | "password" | "upload"// 表单类型
        key: string // key
        labelWidth?: string | number
        placeholder?: string // 提示文字
        option?: any // 下拉框等配置项
        multiple?: boolean // 是否多选
        show?: Show// 是否显示
        change?: Function // change事件
        nodeClick?: nodeClick
    }
    type ButtonTypes = "primary" | "success" | "danger" | "default" | "info" | "warning"
    type btnList = "cancel" | "submit" | "reset"
    interface Options {
        btnList: btnList[] // 显示哪些按钮
        submitText?: string
        submitType?: ButtonTypes
        resetText?: string,
        resetType?: ButtonTypes
        cancelText?: string
        cancelType?: ButtonTypes
    }
}




